<style>
ul {
  padding: 0px;
  padding-left: 16px;
}
</style><?
include('custom/metatabs.php');
?>
<h3><?= $this->news['n_title'] ?></h3>
<div style="padding: 8px;"><?= nl2br($this->news['n_content']) ?></div>
<hr/>
<table width="100%">
<tr><td valign="top" width="450">
  <div style="width: 450px; height: 450px; overflow: auto;">
  <table width="100%">
  <?
  if (sizeof($this->comments) == 0)
    print('<tr><td><b style="color: gray">no comments yet</b></td></tr>');
  foreach($this->comments as $cds) if (trim(strip_tags($cds['nc_content'], '<b><i><li><ul>'))!='')
  {
    ?>
    <tr><td valign="top"><img src="<?= $cds['u_fb_pic_square'] ?>"/></td><td valign="top">
      <div style="border-top: 1px solid gray; padding: 4px;"><b><a target="_top" href="http://www.facebook.com/profile.php?id=<?= $cds['u_fb_uid'] ?>"><?= $cds['u_fb_name'] ?></a></b> 
      <span style="color: gray">says: </span><br/><?= nl2br(trim(strip_tags($cds['nc_content'], '<b><i><li><ul><img>'))) ?></div>
    </td></tr><?
  }
  ?>
  </table><div id="commentarea"></div>
  </div>
</td><td valign="bottom">
<br/>
<h4>Leave a comment</h4>
<form action="<?= actionUrl('news', 'meta') ?>" method="post">
  <input type="hidden" name="cmd" value="postcomment"/>
  <input type="hidden" name="id" value="<?= $_REQUEST['id']+0 ?>"/>
  <textarea name="content" style="height: 250px"></textarea>
  <input type="submit" name="submitbtn" value="Send"/>
</form>
</td></tr></table>
<script>
  $(document).ready(function() {
    document.getElementById("commentarea").scrollIntoView(false);
  });
</script>
